package com.fiidee.blog.mapper;

import com.fiidee.blog.dto.BlogCategoryDTO;
import com.fiidee.blog.entity.BlogCategory;
import com.fiidee.blog.entity.Collection;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CollectionMapper {
    int deleteByPrimaryKey(int id);

    int insert(Collection record);

    int insertSelective(Collection record);

    Collection selectByPrimaryKey(int id);

    int updateByPrimaryKeySelective(Collection record);

    int updateByPrimaryKey(Collection record);

    List<BlogCategory> selectByDTO(@Param("dto")BlogCategoryDTO dto);

    int deleteInIds(@Param("ids")String ids);

    int cancelCollection(@Param("userid") int userid,@Param("blogid") int blogid);
}